package bold.storage;

import jdk.nashorn.internal.lookup.Lookup;

import java.net.InetAddress;
import java.net.UnknownHostException;

/**
 * @author khaiLoon
 * @date 2018/11/1
 **/
public class Dns {


    public static void main(String[] args) throws UnknownHostException, InterruptedException {

        while (true) {
            String dottedQuadIpAddress = InetAddress.getByName("www.lkl.com").getHostAddress();
            System.out.println(dottedQuadIpAddress);
            Thread.sleep(1000L);
        }

    }

}
